<template>
  <div class="task">
    <el-empty description="暂无数据" v-if="tasks.length == 0" />
    <el-scrollbar height="95%">
      <TaskItem v-model="taskId" v-for="item in tasks" :task="item" />
    </el-scrollbar>
  </div>
</template>
<script setup>
import TaskItem from './TaskItem.vue'

const taskId = ref(0)
const prosp = defineProps({
  tasks: Array,
})
</script>
<style lang="scss" scoped>
.task {
  flex: 1;
  overflow: hidden;
}
</style>
